<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>

</head>
</head>
<body>
<div id="app">
  <h3 v-show="score>50">v-show测试</h3>
  <p>
    <button @click="changeScore">发布成绩</button>
  </p>
</div>
<!-- 1:引包 -->
<script type="text/javascript" src="../../node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
  new Vue({
    el: "#app",
    data: {
      score: 0
    },
    methods: {
      changeScore: function () {
       this.score=Math.round(Math.random()*100)
      }
    }

  })
</script>
</body>
</html>
